package interpreter.service.impl;

import interpreter.service.Expression;

public class OrExpression implements Expression {
    private Expression expre1 = null;
    private Expression expre2 = null;

    public OrExpression(Expression expression,Expression expression2){
        this.expre1 = expression;
        this.expre2 = expression2;
    }
    @Override
    public boolean interpret(String content) {
        return expre1.interpret(content) || expre2.interpret(content);
    }
}
